package com.handtransaction.entity;

import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

import java.math.BigDecimal;

/**
 * @author YAO
 * @create 2021-03-24 14:25
 */
@Component
public class User {
    private Integer uid;
    private String upassword;
    private String uname;
    private String ufaculty;
    private String uphone;
    private Integer upid;
    private BigDecimal ubalance;
    private long unumber;
    private String usign;
    private String uimg_path;
    private MultipartFile imgfile;

    public MultipartFile getImgfile() {
        return imgfile;
    }

    public void setImgfile(MultipartFile imgfile) {
        this.imgfile = imgfile;
    }

    public String getUimg_path() {
        return uimg_path;
    }

    public void setUimg_path(String uimg_path) {
        this.uimg_path = uimg_path;
    }

    public User(Integer uid, String upassword, String uname, String ufaculty, String uphone, Integer upid, BigDecimal ubalance, long unumber, String usign,String uimg_path,MultipartFile imgfile) {
        this.uid = uid;
        this.upassword = upassword;
        this.uname = uname;
        this.ufaculty = ufaculty;
        this.uphone = uphone;
        this.upid = upid;
        this.ubalance = ubalance;
        this.unumber = unumber;
        this.usign = usign;
        this.uimg_path = uimg_path;
        this.imgfile=imgfile;
    }

    public User(Integer uid, String upassword, String uname, String ufaculty, String uphone, Integer upid, BigDecimal ubalance, long unumber, String usign) {
        this.uid = uid;
        this.upassword = upassword;
        this.uname = uname;
        this.ufaculty = ufaculty;
        this.uphone = uphone;
        this.upid = upid;
        this.ubalance = ubalance;
        this.unumber = unumber;
        this.usign = usign;
    }

    public User(Integer uid, String upassword, String uname, String ufaculty, String uphone, Integer upid, BigDecimal ubalance) {
        this.uid = uid;
        this.upassword = upassword;
        this.uname = uname;
        this.ufaculty = ufaculty;
        this.uphone = uphone;
        this.upid = upid;
        this.ubalance = ubalance;
    }

    public User(Integer uid, String upassword, String uname, String ufaculty, String uphone, Integer upid, BigDecimal ubalance,String uimg_path) {
        this.uid = uid;
        this.upassword = upassword;
        this.uname = uname;
        this.ufaculty = ufaculty;
        this.uphone = uphone;
        this.upid = upid;
        this.ubalance = ubalance;
        this.uimg_path=uimg_path;
    }

    public User() {
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", upassword='" + upassword + '\'' +
                ", uname='" + uname + '\'' +
                ", ufaculty='" + ufaculty + '\'' +
                ", uphone='" + uphone + '\'' +
                ", upid=" + upid +
                ", ubalance=" + ubalance +
                ", unumber=" + unumber +
                ", usign='" + usign + '\'' +
                ", uimg_path='" + uimg_path + '\'' +
                ", imgfile=" + imgfile +
                '}';
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUpassword() {
        return upassword;
    }

    public void setUpassword(String upassword) {
        this.upassword = upassword;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUfaculty() {
        return ufaculty;
    }

    public void setUfaculty(String ufaculty) {
        this.ufaculty = ufaculty;
    }

    public String getUphone() {
        return uphone;
    }

    public void setUphone(String uphone) {
        this.uphone = uphone;
    }

    public BigDecimal getUbalance() {
        return ubalance;
    }

    public void setUbalance(BigDecimal ubalance) {
        this.ubalance = ubalance;
    }

    public long getUnumber() {
        return unumber;
    }

    public void setUnumber(long unumber) {
        this.unumber = unumber;
    }

    public String getUsign() {
        return usign;
    }

    public void setUsign(String usign) {
        this.usign = usign;
    }

    public Integer getUpid() {
        return upid;
    }

    public void setUpid(Integer upid) {
        this.upid = upid;
    }

}

